{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu="add" /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th hidden width="25"><input type="checkbox"></th>
            <th width="">标题</th>
            <th width="">图片</th>
            <th width="">跳转类型:1跳转h5;2跳转内小程序;3:外部小程序</th>
            <th width="">跳转的小程序appid</th>
            <th width="">跳转路径</th>
            <th width="">显示状态:0显示;1不显示</th>
            <th width="">显示权重(越大越靠前)</th>
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td hidden><input type="checkbox" name="id[]" value="{$vo.id}"></td>
            <td>{$vo.title}</td>
            <td>{$vo.img}</td>
            <td>{$vo.jump_type}</td>
            <td>{$vo.appid}</td>
            <td>{$vo.url}</td>
            <td>
                {if condition="$vo.status == 0"} 显示
                {/if}
                {if condition="$vo.status == 1"} 不显示
                {/if}
            </td>
            <td>{$vo.weight}</td>
            <td class="f-14">
                {tp:menu menu='sedit' /}
                {tp:menu menu='sdeleteforever' /}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}

